import React, { Component } from 'react'
// import qs from 'querystring'

export default class Detail extends Component {
	render() {
		console.log('---render---',this)
		const {id,title,content} = this.props.location.state || {}
		// console.log(qs.parse(search.slice(1)))
		// const {id,title,content} = qs.parse(search.slice(1))
		return (
			<ul>
				<li>编号：{id}</li>
				<li>标题：{title}</li>
				<li>内容: {content}</li>
			</ul>
		)
	}
	componentDidMount(){
		// console.log('Detail组件挂载完毕了')
	}
}
